package book.service.impl;

import book.dao.cs_dingdanDao;
import book.entity.chushou;
import book.entity.cs_dingdan;
import book.service.CS_DingDanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CS_DingDanServiceImpl implements CS_DingDanService {
    @Autowired
    cs_dingdanDao cs;

    @Override
    public List<chushou> getAll(int offset, int limit, chushou condition) {
        return cs.getAll();
    }

    @Override
    public int getCount() {
        return cs.getCount();
    }

    @Override
    public void insert(cs_dingdan dz) {
        cs.insertEntity(dz);
    }

    @Override
    public void update(chushou dz) {
        cs.updateEntity(dz);
    }

    @Override
    public void delete(String id) {
        cs.delete(id);
    }

    @Override
    public void todel(List  list) {
        cs.bat(list);
    }

    @Override
    public List<cs_dingdan> getById(String id) {
        return cs.getById(id);
    }

    @Override
    public void delBy(int id) {
        cs.deleteEntity(id);
    }


}
